package com.aduerr.v1shouyin.util;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * 类名: phoneNumberutil
 * 此类用途: ---
 *
 * @Author:
 * @Date: 2017-11-21 16:03
 * @Email: sage.lu6@gmail.com
 * @FileName: com.aduer.shouyin.util.phoneNumberutil.java
 */
public class phoneNumberutil {
    /**
     * 检查是否是电话号码
     *
     * @return
     */
    public static boolean isMobileNum(String mobiles) {
        Pattern p = Pattern
                .compile("^((13[0-9])|(15[^4,\\D])|(18[0-9]))\\d{8}$");
        Matcher m = p.matcher(mobiles);
        return m.matches();
    }
}
